package org.apache.flink.runtime.resourceprovider;

import java.io.Serializable;
import java.util.Set;

import org.apache.flink.runtime.allocatedeploy.execution.ExecutionID;

/** A report about the currently deployed executions of a TaskExecutor. */
public class ResourceConsumptionReport implements Serializable {

    private static final long serialVersionUID = -2731996813330298044L;

    private final Set<ExecutionID> consumptions;

    public ResourceConsumptionReport(Set<ExecutionID> consumptions) {
        this.consumptions = consumptions;
    }

    public Set<ExecutionID> getConsumptions() {
        return consumptions;
    }

    @Override
    public String toString() {
        return "ResourceConsumptionReport{" + "consumptions=" + consumptions + '}';
    }
}
